#!/bin/bash

echo "1" | sudo chmod 0777 /dev/ttyS0

echo "1" | sudo chmod 0777 /dev/ttyS1

unzip ./hidapi-master.zip


unzip ./libusb-master.zip

cd  ./hidapi-master

echo "1" | sudo apt-get install libusb-2.0  -Y

echo "1" | sudo apt-get install libusb-1.0.0 -Y


echo "1" | sudo apt-get install libus -Y

echo "1" | sudo apt-get install libudev-dev  -Y


echo "1" | sudo apt-get install libfox-1.6-dev  -Y


echo "1" | sudo apt-get install autotools-dev  -Y


echo "1" | sudo apt-get install autoconf  -Y

echo "1" | sudo apt-get install automake  -Y


echo "1" | sudo apt-get install libtool  -Y


./bootstrap

./configure

make

echo "1" | sudo make install




